-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问如何输入 tab 控制符 #17
Comments
@jdhanyang, have you tried to do this? Its only and higher C++11 feature. auto p = doc.AppendParagraph(R"(甲 方:\t\t\t\t乙 方:)", 12, "Times New Roman", "宋体"); |
@GermanAizek
result is: Microsoft Visual Studio Community 2022 (64 位) , ISO C++14 标准 (/std:c++14) |
try this: auto r = doc.AppendParagraph().AppendRun();
r.AppendText(u8"甲方:");
r.AppendTabs(4);
r.AppendText(u8"乙方:"); |
输入 tab 是用来对齐用的,代码如下:
auto p = doc.AppendParagraph("甲 方:\t\t\t\t乙 方:", 12, "Times New Roman", "宋体");
以上的 \t 并不起作用,生成的文件中被替换成了空格,请教应如何输入 tab 控制符
The text was updated successfully, but these errors were encountered: