Pyza123 / asciidoc

Automatically exported from code.google.com/p/asciidoc
GNU General Public License v2.0
0 stars 0 forks source link

Changing the footer text behaviour #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello.

First, thanks for the great job you did with this tool.

What steps will reproduce the problem?
1. Currently the footer text will display the "last updated" field as the last 
modification date of the source file. But in certain cases (for example massive 
files generation from a git repository), we would want to have the revision 
date instead, or even nothing.

What is the expected output? What do you see instead?

What I did in the patch is I used a new attribute named "footer-style" that 
could take 3 values:
 - default (or not defined, same as currently)
 - none (not displaying the footer-text section
 - revdate (displays the revision date instead of the source file modification date
Any other value will display only the version number from the footer-text 
section(if defined).

What version of the product are you using? On what operating system?
All versions on all OS.

Please provide any additional information below.
You'll find attached the patch generated with mercurial. It's quite simple.
Be careful, I only did the trick for the english version.

The enhancement was officially asked for debian in 
http://bugs.debian.org/656736 but I also had the need, so I did the change.

If you have any comments, please tell me.

Best regards,
Joseph

Original issue reported on code.google.com by herla...@gmail.com on 27 Jan 2014 at 8:05

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

This issue can be closed as I did a pull request for that on GitHub.
https://github.com/asciidoc/asciidoc/pull/7

Cheers,
Joseph

Original comment by herla...@gmail.com on 7 Feb 2014 at 12:55

GoogleCodeExporter commented 8 years ago
Hi,

This issue can be closed as I did a pull request for that on GitHub.
https://github.com/asciidoc/asciidoc/pull/7

Cheers,
Joseph

Original comment by herla...@gmail.com on 7 Feb 2014 at 12:55