Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -8479,7 +8479,7 @@ |
8480 | 8480 | !! input |
8481 | 8481 | /* External links */ removed bogus entries |
8482 | 8482 | !! result |
8483 | | -<span class="autocomment"><a href="https://www.mediawiki.org/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries |
| 8483 | +<a href="https://www.mediawiki.org/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span> |
8484 | 8484 | !!end |
8485 | 8485 | |
8486 | 8486 | !! test |
— | — | @@ -8489,7 +8489,7 @@ |
8490 | 8490 | !! input |
8491 | 8491 | /* External links */ removed bogus entries |
8492 | 8492 | !! result |
8493 | | -<span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries |
| 8493 | +<a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span> |
8494 | 8494 | !!end |
8495 | 8495 | |
8496 | 8496 | !! test |
— | — | @@ -8576,7 +8576,7 @@ |
8577 | 8577 | !!input |
8578 | 8578 | /* __hello__world__ */ |
8579 | 8579 | !! result |
8580 | | -<span class="autocomment"><a href="https://www.mediawiki.org/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span> |
| 8580 | +<a href="https://www.mediawiki.org/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span> |
8581 | 8581 | !! end |
8582 | 8582 | |
8583 | 8583 | !! test |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1178,7 +1178,6 @@ |
1179 | 1179 | $link = ''; |
1180 | 1180 | } |
1181 | 1181 | } |
1182 | | - $auto = "$link$auto"; |
1183 | 1182 | if ( $pre ) { |
1184 | 1183 | # written summary $presep autocomment (summary /* section */) |
1185 | 1184 | $auto = wfMsgExt( 'autocomment-prefix', array( 'escapenoentities', 'content' ) ) . $auto; |
— | — | @@ -1188,7 +1187,7 @@ |
1189 | 1188 | $auto .= wfMsgExt( 'colon-separator', array( 'escapenoentities', 'content' ) ); |
1190 | 1189 | } |
1191 | 1190 | $auto = '<span class="autocomment">' . $auto . '</span>'; |
1192 | | - $comment = $pre . $auto . $post; |
| 1191 | + $comment = $pre . $link . $wgLang->getDirMark() . '<span dir="auto">' . $auto . $post . '</span>'; |
1193 | 1192 | return $comment; |
1194 | 1193 | } |
1195 | 1194 | |