Skip to content
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

ruby命令と空白の挙動について #1837

Closed
fabon-f opened this issue Jul 19, 2022 · 2 comments
Closed

ruby命令と空白の挙動について #1837

fabon-f opened this issue Jul 19, 2022 · 2 comments

Comments

@fabon-f
Copy link
Contributor

fabon-f commented Jul 19, 2022

現在、ドキュメント(format.md)ではルビ記法について@<ruby>{親文字, ルビ}と記載がされています。ここで親文字とルビの間にコンマと空白があるのですが、builder.rbで命令の中身をパースする段階ではこの空白が取り除かれておらず(ルビの方に入っている)、その結果ルビ部分の前にスペースが入るかがビルダ依存になっています。

  • 空白付きで出力される: LaTeX(\ruby{親文字}{ ルビ}のように)、HTML
  • 空白が削除される: IDGXML

前者はドキュメントの挙動と食い違うため、全てのビルダについて挙動を後者に合わせるべきではないでしょうか。(たとえばcompile_rubyに渡すところでtrimしてしまうとか)

@kmuto
Copy link
Owner

kmuto commented Jul 24, 2022

ご報告ありがとうございます。
これは最近自分もハマったのでビルダ共通でスペースをtrimする方向にします。

@kmuto
Copy link
Owner

kmuto commented Jul 25, 2022

タイプミスでauto closeできなかったという痛恨…

ご報告ありがとうございました!

@kmuto kmuto closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants