Edgewall Software
Modify

Opened 6 years ago

Last modified 6 years ago

#298 new defect

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 (0)

Change History (3)

comment:1 Changed 6 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.

comment:2 Changed 6 years ago by cboos

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

comment:3 Changed 6 years ago by cmlenz

  • Milestone changed from 0.6 to 0.6.1

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain cmlenz.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cmlenz to the specified user. Next status will be 'new'.
The owner will be changed from cmlenz to anonymous. Next status will be 'assigned'.
Author


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

 
Note: See TracTickets for help on using tickets.