refactor: format

This commit is contained in:
DIYgod
2019-06-18 16:09:32 +08:00
parent 42c9ab40f0
commit 4b1a0bc5f6
+12 -13
View File
@@ -44,19 +44,18 @@ module.exports = async (ctx) => {
data.paragraphs.forEach((element) => {
description += `<tr><td> ${element.content} </td><td> ${element.zh_content.content} </td></tr>`;
});
description +=
'</table>\
<style>\
table, \
table tr th, \
table tr td {\
border: 1px solid #000000; \
padding: 10px; \
} \
table {\
border-collapse: collapse; \
} \
</style>';
description += `</table>
<style>
table,
table tr th,
table tr td {
border: 1px solid #000000;
padding: 10px;
}
table {
border-collapse: collapse;
}
</style>`;
author = data.user.nickname;
break;
case 'paper': // 论文