-
Notifications
You must be signed in to change notification settings - Fork 16
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
indentation in CDATA blocks like command and help #43
Labels
Comments
@peterjc go ahead and make a PR :) |
💯 |
Note that right now the |
Indentation is not significant in Cheetah, so this kind of changes shouldn't have any impact. Any way I'm happy to have this as a suggested (not mandatory) code style. |
This was referenced Jun 16, 2017
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cross reference galaxyproject/tools-iuc#1346 (comment) from @nsoranzo
Should we have a recommend style for indenting CDATA blocks? I agree with him that excessive indentation of the command tags is undesirable, and likewise for the RST in the help tags having no extra indentation makes copy/paste to and from an RST editor far easier.
My proposal:
Multiple lines of content should be written as follows (example based on
tools/trinotate/trinotate.xml
), aligned starting flush left rather than following the XML containing tag's indentation:Do not use a new line for the opening
<![CDATA[
text nor the closing]]>
text.Do not leave a blank line after the opening tag and
<![CDATA[
, nor leave a blank line before the closing]]>
and closing tag.Single lines of content may be written as either:
(example from
tools/xpath/xpath.xml
), or following the recommenced multi-line style:The text was updated successfully, but these errors were encountered: