From 458e2556a1ea7426735486be11523cba8dff177d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 4 Jun 2014 23:16:49 +0200 Subject: doc: fix indentation in listings --- doc/luaotfload-latex.tex | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/luaotfload-latex.tex b/doc/luaotfload-latex.tex index 3aab22b..34c494d 100644 --- a/doc/luaotfload-latex.tex +++ b/doc/luaotfload-latex.tex @@ -244,9 +244,14 @@ \directlua { local texprint = tex.print + local stringsub = string.sub + local backslash = string.byte (0x5c) document = document or { } document.printlines = function (buffer) for _, line in next, string.explode (buffer, "\noexpand\n") do + if stringsub (line, 1, 1) == " " then + line = backslash .. line + end texprint (-1, line) texprint (-1, "") end -- cgit v1.2.3