Opened 16 years ago
Last modified 8 years ago
#298 new defect
Indenting differences causes multiple identical msgids
Reported by: | jruigrok | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | 0.9 |
Component: | Internationalization | Version: | 0.5.1 |
Keywords: | Cc: |
Description
Given two identical HTML snippets:
<div id="help" i18n:msg=""><strong>Note:</strong> See <a href="${href.wiki('TracRoadmap')}">TracRoadmap</a> for help on using the roadmap. </div>
and
<div id="help" i18n:msg=""><strong>Note:</strong> See <a href="${href.wiki('TracRoadmap')}">TracRoadmap</a> for help on using the roadmap. </div>
Genshi's extractor yields the following:
"[1:Note:] See\n" " [2:TracRoadmap] for help on using\n" " the roadmap."
and
"[1:Note:] See\n" " [2:TracRoadmap] for help on using\n" " the roadmap."
The only difference is leading whitespace. I think we should make this collapse to a single whitespace, since we do not do anything useful with the whitespace anyway.
Change History (4)
comment:1 Changed 16 years ago by jruigrok
comment:2 Changed 15 years ago by cboos
Not so important, can easily wait 0.6.x or 0.7.
comment:3 Changed 15 years ago by cmlenz
- Milestone changed from 0.6 to 0.6.1
comment:4 Changed 8 years ago by hodgestar
- Milestone changed from 0.6.1 to 0.9
Move to milestone 0.9.
Note: See
TracTickets for help on using
tickets.
Chris noted that in a <pre> or xml:space="preserve" context we do requires the leading whitespace.
So the choice becomes making Genshi more selective on when to leave the whitespace in or to duplicate bits like this in the POT and PO files.