rtomayko / ronn

the opposite of roff
http://rtomayko.github.com/ronn/
Other
1.36k stars 84 forks source link

Support periods in manual name #73

Open pbrkr opened 11 years ago

pbrkr commented 11 years ago

I'm writing manual pages for section 5 and so my manual page names include periods (eg input file is 'suffixes.install.5.ronn', desired output filename is 'suffixes.install.5'). Instead of the output file being named as expected, the name is cut off at the first period (eg. output file 'suffixes.5').

I guess that the issue is in the definition of basename() at "ronn/lib/ronn/document.rb" line 92, but i'm not a ruby programmer so I can't really help with the solution.

rtomayko commented 11 years ago

Thanks for the report. This is definitely a bug. I'll take a look at getting a fix in soon.

jflorian commented 9 years ago

I'm having the same issue. I use a hackish workaround of replacing the periods with underscores and then rename things (in my rpm spec) after ronn has been run. Unfortunately this isn't enough because my html'ized SEE ALSO section's links fail because the link is cut too short.

I love ronn though. I actually take the time to write man pages now! :-)

apjanke commented 5 years ago

Hi @paul-betafive and @jflorian: looks like Ronn development is defunct, but I've added support for this on my Ronn-NG fork at https://github.com/apjanke/ronn-ng/commit/52e0f374ebfeb68f98d01de1845488e9cdacbcc1.