OSDN Git Service

fix #36965
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 4 Feb 2017 21:41:04 +0000 (06:41 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 4 Feb 2017 21:41:04 +0000 (06:41 +0900)
src/ltj-jfmglue.lua
src/patches/lltjcore.sty

index 843c3f9..3477b09 100644 (file)
@@ -1153,6 +1153,7 @@ end
 
 local ensure_tex_attr = ltjb.ensure_tex_attr
 local function cleanup(mode, TEMP)
+   -- luatexja.ext_show_node_list(to_node(head), '> ', print)
    -- adjust attr_icflag for avoiding error
    if tex.getattribute(attr_icflag)~=0 then ensure_tex_attr(attr_icflag, 0) end
    node_free(kanji_skip); 
index a075947..f632fe8 100644 (file)
    \global \maxdepth \@maxdepth
 }
 
+\def\@gnewline #1{%
+  \ifvmode
+    \@nolnerr
+  \else
+    \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \null
+    % \null は \break の効果が行頭禁則文字で打ち消されないために必要
+  \ignorespaces
+\fi}
+
+
 \endinput