Edgewall Software

Ticket #298 (new defect)

Opened 5 years ago

Last modified 4 years ago

Indenting differences causes multiple identical msgids

Reported by: jruigrok Owned by: cmlenz
Priority: major Milestone: 0.6.1
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.

Attachments

Change History

Changed 5 years ago by jruigrok

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.

Changed 4 years ago by cboos

Not so important, can easily wait 0.6.x or 0.7.

Changed 4 years ago by cmlenz

  • milestone changed from 0.6 to 0.6.1

Add/Change #298 (Indenting differences causes multiple identical msgids)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cmlenz. Next status will be 'new'
The owner will change from cmlenz to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.