Imports changes from Mediacloth revision r124
| 49 | # Utility method that converts the string specified into a specially formatted text | # Utility method that converts the string specified into a specially formatted text | 49 |
|---|---|---|---|
| 50 | # string which can be used as an XHTML link anchor name. | # string which can be used as an XHTML link anchor name. | 50 |
| 51 | def MediaWikiHTMLGenerator.anchor_for(str) | def MediaWikiHTMLGenerator.anchor_for(str) | 51 |
| 52 | str.strip.squeeze(' ').gsub(' ', '_') | str.strip.squeeze(' ').gsub(' ', '_').gsub('\'', '_') | 52 |
| 53 | end | end | 53 |
| 54 | 54 | ||
| 55 | 55 |
| 23 | 23 | ||
|---|---|---|---|
| 24 | </p><ul><li>foo | </p><ul><li>foo | 24 |
| 25 | </li><li> foo2 | </li><li> foo2 | 25 |
| 26 | </li></ul> | </li></ul><h2><a name='There_aren_t_any_closing_quotes_inside_this_headline_s_name'></a> There aren't any closing quotes inside this headline's name </h2> | 26 |
| 11 | 11 | ||
|---|---|---|---|
| 12 | </p><p>Text escaped in a heading: | </p><p>Text escaped in a heading: | 12 |
| 13 | 13 | ||
| 14 | </p><h2><a name='Heading_with_''''></a>Heading with '''</h2> | </p><h2><a name='Heading_with____'></a>Heading with '''</h2> | 14 |
| 32 | 32 | ||
|---|---|---|---|
| 33 | *foo | *foo | 33 |
| 34 | * foo2 | * foo2 | 34 |
| 35 | |||
== There aren't any closing quotes inside this headline's name == | 36 |
| 23 | 23 | ||
|---|---|---|---|
| 24 | PARA_ENDUL_STARTLI_STARTTEXTfoo | PARA_ENDUL_STARTLI_STARTTEXTfoo | 24 |
| 25 | LI_ENDLI_STARTTEXT foo2 | LI_ENDLI_STARTTEXT foo2 | 25 |
| 26 | LI_ENDUL_ENDfalsefalse | LI_ENDUL_ENDSECTION_START==TEXT There aren't any closing quotes inside this headline's name SECTION_END==falsefalse | 26 |