Closed Bug 460573 Opened 16 years ago Closed 9 years ago

nsIXULRuntime should have a property to indicate the default line break string

Categories

(Toolkit Graveyard :: XULRunner, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: laurent, Assigned: laurent)

Details

Attachments

(1 file, 1 obsolete file)

For xpcshell or other javascript scripts, It would be fine if we could have the characters to use to insert a line break in a string, corresponding to the default characters for a line break on the current plateform. nsIXULRuntime could provide a property which contains this string : nsIXULRuntime.LINEBREAK for example ? I will propose a patch.
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #343715 - Flags: review?(benjamin)
I could have sworn there was already something that did this, but perhaps I'm just misremembering existing per-platform ifdefs. nsIXULRuntime doesn't really seem like the right place to put this, but I can't really think of a better place offhand.
Comment on attachment 343715 [details] [diff] [review] patch v1 Please use lowercase "linebreak" instead of uppercase.
Attachment #343715 - Flags: review?(benjamin) → review-
Attached patch patch v2Splinter Review
I changed the name of the property.
Attachment #343715 - Attachment is obsolete: true
Attachment #345145 - Flags: review?(benjamin)
Attachment #345145 - Flags: review?(benjamin) → review+
XULRunner has been removed from the Mozilla tree: see https://groups.google.com/forum/#!topic/mozilla.dev.platform/_rFMunG2Bgw for context. I am closing all the bugs currently in the XULRunner bugzilla component, in preparation for moving this component to the graveyard. If this bug is still valid in a XULRunner-less world, it will need to be moved to a different bugzilla component to be reopened.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: