- **status**: in-progress --> code-review
- **Comment**:

Closed #603.

It caused by the following paragraph:

~~~~~
The most important part of this definition is the <[[#url|url]]> entry. It is a 
template containing specific placeholders, which are encapsulated by curly 
braces, and specify the requested tile. 
~~~~~

specifically:

~~~~~
<[[#url|url]]>
~~~~~

`_tagPattern` 
[here](https://github.com/zikzakmedia/python-mediawiki/blob/master/mediawiki/wikimarkup/__init__.py#L567)
 does not match this kind of "tag", so all the section is skipped.


I've added test to duplicate this in `mediawikiimporter:je/42cc_7447` + one 
more commit that fixes test that was broken before.

Also, I've committed dirty and quick fix for this case in 
`allura:je/42cc_7447`, but I do not sure it won't break some other markup.

Basically, what I did is changed regex a bit to accept tags that does not start 
from alphanumeric characters.

But, again, don't sure it should be committed, since it's pretty dirty fix.



---

** [tickets:#7447] Text lost in mediawiki importer**

**Status:** code-review
**Milestone:** forge-backlog
**Labels:** 42cc import 
**Created:** Fri Jun 06, 2014 03:59 PM UTC by Dave Brondsema
**Last Updated:** Fri Jun 06, 2014 03:59 PM UTC
**Owner:** nobody

When converting 
https://sourceforge.net/p/allura/pastebin/5391e4847929e541de0160d9 the "Custom 
WMS map sources" section is lost.  This can be tested in an automated test for 
example changing the `history` method in `TestMediawikiLoader` to use the 
content for one of the 'text' fields.


---

Sent from sourceforge.net because dev@allura.apache.org is subscribed to 
https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.

Reply via email to