Ticket #3017 enhancement closed fixed

Opened 5 years ago

Last modified 5 years ago

man2lore doesn't correctly translate .TP tags

Reported by: therve Owned by:
Priority: highest Milestone:
Component: lore Keywords:
Cc: Branch: branches/fix-man2lore-3017
Author: therve Launchpad Bug:

Description

Basically, it means that the output of the list of options in xhtml is broken.

Change History

1

Changed 5 years ago by therve

  • branch set to branches/fix-man2lore-3017
  • author set to therve

(In [22432]) Branching to 'fix-man2lore-3017'

2

Changed 5 years ago by therve

(In [22433]) Fix and tests.

Refs #3017

3

Changed 5 years ago by therve

  • owner therve deleted
  • keywords review added

This is ready to review. man2lore would need one hundred time more tests, but I'm not sure I have the energy to do that right now. As it's a release blocker...

4

Changed 5 years ago by exarkun

  • keywords review removed
  • owner set to therve

eyes bleeding, etc. Thanks for tackling this. I won't ask for all the extra tests this code really needs, since the change to fix this issue is pretty small and the approach man2lore takes is completely wrong anyway...

Some stuff I think should be done, though:

  • test-case-name for man2lore.py
  • docstring for macro_TP and text methods of ManConverter, since they had changes
  • documentation for the tp ivar of ManConverter
  • Factor the common parts of the tests into a helper - writing to a file, calling convert, etc.

5

Changed 5 years ago by therve

(In [22439]) Process review comments.

Refs #3017.

6

Changed 5 years ago by therve

  • priority changed from normal to highest
  • owner therve deleted
  • keywords review added

Thanks for the review. I think I fix everything, except the test-case-name which was already there :).

7

Changed 5 years ago by exarkun

  • keywords review removed
  • owner set to therve

Cool, thanks. ManConverter.tp is still pretty opaque to me though. Do you think you could document what each of the 4 values it can take on mean (I ask because I think you must have figured out at least some of them in order to make this change :)? This could either take the form of an expanded @ivar or maybe the constants could be replaced with symbolic names which have some meaning.

8

Changed 5 years ago by therve

(In [22459]) Document tp variable.

Refs #3017

9

Changed 5 years ago by therve

  • owner therve deleted
  • keywords review added

I choosed the verbose way, I hope this is clear enough. Back to review.

10

Changed 5 years ago by exarkun

  • owner set to therve
  • keywords review removed

Looks good, thanks. Please merge.

11

Changed 5 years ago by therve

  • status changed from new to closed
  • resolution set to fixed

(In [22460]) Merge fix-man2lore-3017

Author: therve Reviewer: exarkun Fixes #3017

Fix the conversion of the list of options in man pages to Lore format.

12

Changed 2 years ago by <automation>

  • owner therve deleted
Note: See TracTickets for help on using tickets.