alhassy / alhassy/org-special-block-extras
Unwanted newlines in LaTeX export
- 主要语言
- HTML
- 星标
- 236
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
Consider the following custom block:
```
#+begin_blockquote :citekey key :pages pages
*This* is a /try/.
#+end_blockquote
```
which was defined like this
```
(org-defblock blockquote nil (citekey "" pages "") "This is just an attempt."
(format (if (equal backend 'latex)
"\\blockcquote[%s]{%s}{%s}" nil)
pages citekey contents))
```
What it should print:
```
\blockcquote[pages]{key}{\textbf{This} is a \emph{try}.}
```
What it does print:
```
\blockcquote[pages]{key}{
\textbf{This} is a \emph{try}.
}
```
The problem is that, due to the added whitespace, the custom block just shown produces the latter output. If this is exported to LaTeX, instead of `"**This** is a _try_"`, you get `" **This** is a _try_ "`. regexp-replacement does not work here, adding `%` only for the first line. Any ideas what to do?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。