LowHangingFruit

From Request Tracker Wiki
Revision as of 14:28, 8 January 2017 by Barton (talk | contribs) (Created page with "== Low Hanging Fruit == Code block cleanup The previous version of the rt-wiki used a single space indent, sometimes surrounded by <code><nowiki></code> tags to delimi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Low Hanging Fruit

Code block cleanup

The previous version of the rt-wiki used a single space indent, sometimes surrounded by <nowiki> tags to delimit code blocks. Media-wiki uses a four space indent to delimit code. The old style does not correctly format the first line of the code block.

The for space indent also makes the code literal, so you don't have to add html entities for greather than and less than.

Old:

<%INIT>
$$skip = 1 if $Transaction->Creator == $RT::SystemUser->id;
</%INIT>
<%ARGS>
$Transaction => undef
$skip => undef
</%ARGS>

New:

   <%INIT>
   $$skip = 1 if $Transaction->Creator == $RT::SystemUser->id;
   
   <%ARGS>
   $Transaction => undef
   $skip => undef