asciidoctor / asciidoctor-fopub

A portable DocBook-to-PDF build command that wraps DocBook XSL and Apache FOP
MIT License
113 stars 37 forks source link

Line number not centered #95

Closed getreu closed 6 years ago

getreu commented 6 years ago

I recently updated asciidoctor-fopub for the first time after a year or so. This is why I can not tell when exactly the page number moved out of the centre.

screenshot_2018-11-02_16-12-40

mojavelinux commented 6 years ago

I wonder if this has to do with upgrading the DocBook toolchain to 1.79.1 (from 1.78.1). That's where I'd start looking.

getreu commented 6 years ago

I tried 1.78.1, same erroneous result. Maybe a change in some XSL stylesheet?

mojavelinux commented 6 years ago

That's literally the only change that has happened in a long time that affected the XSL. So ?

getreu commented 6 years ago

I deleted /home/user/.gradle and tested again with your last commit upgrade to Gradle 4.9 (PR #94) · asciidoctor/asciidoctor-fopub@ea989e9

Strangely, the page number is back and centred how it should be! I have no idea why and what happened. I do not see how the gradle-upgrade could have helped. Anyway, for now I close the issue.

mojavelinux commented 6 years ago

First, I'm glad you got it working! You also verified that the Gradle 4.9 upgrade is a go.

My thought is that the cleaning itself solved the problem. You may have run it once when it was in some sort of transitional state. It's always good to clear the cache from time to time just to be certain, esp as a developer. (Remember to nuke ~/.gradle, build, and the local .gradle folder).