Skip to content

Commit

Permalink
Fix minor bug in troff output.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Dec 6, 2013
1 parent 23626c8 commit f405ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lua/export/troff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ local function callback(writer, document)

if newit and not newbf then
writer('\\fI')
linestart = false
elseif newit and newbf then
writer('\\f(BI')
linestart = false
elseif not newit and newbf then
writer('\\fB')
linestart = false
elseif not newit and not newbf and (it or bf) then
writer('\\fR')
linestart = false
end

if not newul and ul then
Expand Down

0 comments on commit f405ea7

Please sign in to comment.