-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
In LuaLaTeX RTL mode, empty lines appear before every paragraph #591
Comments
In my opinion this is a bug in luatex. The TeX engine is pretty clear about what should happen in case of Not sure how to best deal with this. Is there anything in luatex to query the state from TeX (or alter it?) or do we need some lua code to drop the node and reinsert it later? My guess that would be best approach unless luatex changes here.
|
I agree, but I think we still have to work around it for now.
I think we need some Lua code here (see the linked PR), but there is no need to reinsert anything since the dir nodes are automatically reinserted in the new paragraph. We just have to discard them in the empty one. |
so far so good, but the question is how that get's distributed. I would consider that as first-aid for luatex and put it into first-aid on main and first-aid on dev but not roll out a new patch level for this. Or do you think it is enough to just put it into -dev as you did so far? |
I agree. I prepared a first-aid version in #594 for main which we can then cherry-pick into develop. |
Brief outline of the bug
When LuaLaTeX is used and
\textdir
is not set to the default value, an empty paragraph is added in front of every normal paragraph, leading to empty lines being added before every paragraph. This is caused by LuaTeX inserting direction nodes into paragraphs to set the text direction, therefore the paragraph isn't empty when\par
is called during\everypar
.Minimal example showing the bug
Log file (required) and possibly PDF file
Logfile
Picture of output
The text was updated successfully, but these errors were encountered: