[LUDOC-263] wrapped text lines in xml make review in gerrit easier. Created: 04/Dec/14 Updated: 15/Sep/16 |
|
| Status: | Open |
| Project: | Lustre Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Henwood (Inactive) | Assignee: | Lustre Manual Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 16697 |
| Comments |
| Comment by Richard Henwood (Inactive) [ 05/Dec/14 ] |
|
I've spent a bit of time looking into tools to wrap xml. The best I found is 'tidy'. It has a problem, however, which is that in xml mode, --new-pre-tags are ignored. What this means, is that <screen> and <programlisting> tags, which you typically would want to avoid being parsed and wrapped, get parsed and wrapped. So you need to go and manually check the <screen> and <programlisting>s after you tidy. For an example of a 'tidy'ied file see here: This was generated with the command below, and then <screen> tags were manually reviewed. cat ./LustreTuning.xml | ~/tools/tidy/bin/tidy --new-pre-tags screen,programlisting --wrap-script-literals no -utf8 -xml -w 80 -i -c -asxml | vi - |
| Comment by Richard Henwood (Inactive) [ 05/Dec/14 ] |
|
oh, I've also noticed that spaces are remove after 'literal' tags - thanks to the tidy command above. One quick fix is: :%s/\/literal>\([a-zA-Z]\)/\/literal> \1/gc |
| Comment by Gerrit Updater [ 05/Dec/14 ] |
|
Delete comment from wrong patch. |
| Comment by Gerrit Updater [ 11/Feb/15 ] |
|
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/12966/ |
| Comment by Gerrit Updater [ 30/Nov/15 ] |
|
Richard Henwood (richard.henwood@intel.com) uploaded a new patch: http://review.whamcloud.com/17393 |
| Comment by Gerrit Updater [ 30/Nov/15 ] |
|
Richard Henwood (richard.henwood@intel.com) uploaded a new patch: http://review.whamcloud.com/17398 |
| Comment by Gerrit Updater [ 01/Dec/15 ] |
|
Richard Henwood (richard.henwood@intel.com) uploaded a new patch: http://review.whamcloud.com/17410 |
| Comment by Gerrit Updater [ 04/Dec/15 ] |
|
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/17410/ |
| Comment by Gerrit Updater [ 04/Dec/15 ] |
|
Richard Henwood (richard.henwood@intel.com) uploaded a new patch: http://review.whamcloud.com/17485 |
| Comment by Gerrit Updater [ 07/Dec/15 ] |
|
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/17485/ |
| Comment by Gerrit Updater [ 09/Dec/15 ] |
|
Richard Henwood (richard.henwood@intel.com) uploaded a new patch: http://review.whamcloud.com/17530 |
| Comment by Gerrit Updater [ 14/Dec/15 ] |
|
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/17398/ |
| Comment by Gerrit Updater [ 16/Mar/16 ] |
|
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/17393/ |
| Comment by Gerrit Updater [ 16/Mar/16 ] |
|
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/17530/ |