branch: externals/org commit bbba45a07fb9627f4abc11621dd0d72b9779a686 Author: TEC <t...@tecosaur.com> Commit: TEC <t...@tecosaur.com>
ox-latex: Don't use `length' to get string width * lisp/ox-latex.el (org-latex-src-block--listings, org-latex-src-block--engraved, org-latex-src-block--minted): Use `string-width' instead of `length' to gauge the displayed width of the string in LaTeX. This may not be a perfect match, but it should be an improvement. --- lisp/ox-latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index e0f47cf80c..0788b40c0d 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -3306,7 +3306,7 @@ and FLOAT are extracted from SRC-BLOCK and INFO in `org-latex-src-block'." (let* ((code-info (org-export-unravel-code src-block)) (max-width (apply 'max - (mapcar 'length + (mapcar 'string-width (org-split-string (car code-info) "\n"))))) (org-export-format-code @@ -3458,7 +3458,7 @@ and FLOAT are extracted from SRC-BLOCK and INFO in `org-latex-src-block'." (let* ((code-info (org-export-unravel-code src-block)) (max-width (apply 'max - (mapcar 'length + (mapcar 'string-width (org-split-string (car code-info) "\n"))))) (org-export-format-code (car code-info)