ahelsing / tratihubis

convert Trac tickets to Github issues; revised to support more labels, better wiki translation, etc
http://pypi.python.org/pypi/tratihubis/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

pseudo table gets mangled in translation #8

Closed ahelsing closed 9 years ago

ahelsing commented 9 years ago

See gcf trac ticket 146 Source had:

Omni knows about the following aggregates...
============================================
| Nickname | Version | URL                 |
============================================
  pg-gpo        2      http://www...../2.0

Translation:

Omni knows about the following aggregates...
========================================h4. 
| Nickname | Version | URL                 |
========================================
  pg-gpo        2      http://www...../2.0
  plc           1      http://www.....:12346
ahelsing commented 9 years ago

Another example from same ticket:

  Result Summary: Omni knows the following Aggregate Nicknames:

 Nickname        | URN                                             | URL
=============================================================================================================
          pg-bbn | urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+cm | https://pgeni.gpolab.bbn.com:12369/protogeni/xmlrpc/am/2.0
         ig-gpo3 |                                                    | https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am/3.0
         ig-gpo1 |                                                    | https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am/1.0
    ig-kettering | urn:publicid:IDN+geni.kettering.edu+authority+cm   | https://boss.geni.kettering.edu:12369/protogeni/xmlrpc/am/2.0
...

became

  Result Summary: Omni knows the following Aggregate Nicknames:

 Nickname        | URN                                             | URL
=============================================================================================================
pg-bbn | urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+cm | https://pgeni.gpolab.bbn.com:12369/protogeni/xmlrpc/am/2.0
ig-gpo3 |                                                    | https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am/3.0
ig-gpo1 |                                                    | https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am/1.0
    ig-kettering | urn:publicid:IDN+geni.kettering.edu+authority+cm   | https://boss.geni.kettering.edu:12369/protogeni/xmlrpc/am/2.0
...
ahelsing commented 9 years ago

Another example from the description of ticket 209: Old:

================================================================================
LOGIN INFO for AM: http://utah.geniracks.net/protogeni/xmlrpc/am/2.0
================================================================================

Translated:

============================================================================h4. 
LOGIN INFO for AM: http://utah.geniracks.net/protogeni/xmlrpc/am/2.0
============================================================================
ahelsing commented 9 years ago

fixed the regex for headers (the h4 thing) plus commented out the regex that stripped leading spaces