Skip to content
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

Add new option/setting to choose the file extension #66

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 1 comment
Open

Add new option/setting to choose the file extension #66

GoogleCodeExporter opened this issue Apr 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Now we have 4 targets that uses HTML code:

HTML
HTML5
XHTML
XHTML Strict

Their current file extensions for the output file are:

html
html5
xhtml
xhtmls

It's good to have it separated, but it's not practical since in the real world 
.html is the preferred in all cases.

We need a way for the user to specify the default file extension she wants to 
use for a target.

We already have --outfile, but it's not funny to enter the full filename 
everytime when you just want to change the extension and use the current source 
basename (%%infile).

I suggest a new %!extension setting, that can be use in a file by file basis, 
or to the used in the global .txt2tagsrc file.

%!extension(html5): html
%!extension(xhtml): html
%!extension(xhtmls): html

%!extension(bbcode): bb
%!extension(creole): wiki

And so on. A sister command line option --extension could also be used.

Original issue reported on code.google.com by aureliojargas@gmail.com on 12 Nov 2010 at 7:56

@GoogleCodeExporter
Copy link
Author

Issue 107 has been merged into this issue.

Original comment by aureliojargas@gmail.com on 30 Jul 2012 at 3:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant