Closed
Bug 95697
Opened 25 years ago
Closed 24 years ago
nsIPrompt can't handle newlines from .properties
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: hwaara, Assigned: danm.moz)
References
Details
Often, I am trying to implement specs that looks like this:
+----------------------------------------------------+
|::::::::::::::::::::::::::::::::::::::::::::::::::::|
+----------------------------------------------------+
| _ The author of this message requested that |
| [i] follow-ups be sent to the author only. |
| |
| If you want to follow up to the newsgroup |
| anyway, add a "Newsgroup" row to the headers |
| section, and fill in the newsgroup name. |
| |
| (( OK )) |
+----------------------------------------------------+
The problem is that with nsIPrompt, I can't do the paragraph thing.
I tried \n\n, result: I can only see the first "paragraph"
I tried just doing newlines directly in the .properties file, result: the
nsIPrompt didn't take the second paragraph into account, and thus didn't size to
display it.
Do you mean that anything after the newline character isn't read from the
.properties file or the prompt implementation isn't displaying it?
| Reporter | ||
Comment 2•25 years ago
|
||
I think the prompt isn't resized to show the string/characters after the newline.
Reassigning to XP Apps
Assignee: adamlock → pchen
Component: Embedding APIs → XP Apps
QA Contact: mdunn → sairuh
danm thinks he's got a similar bug, reassigning to him since I can't find that
bug right at the moment
Assignee: pchen → danm
Hmm. I don't remember what I was thinking of at the time. This would be a layout
problem, as I read it. Anyway, this test case worked for me:
<html><head><script>
function bigalert() {
alert("hi there. reasonably long line with a line break\n" +
"followed by second line with a double line break\n\n" +
"followed by a longer line in what amounts to probably another " +
"paragraph. Eventually we can hope for a bit of line wrapping.");
}
</script></head><body>
<a href="javascript:bigalert()">big alert</a>
</body></html>
closing WFM. Please provide an example if you reopen it.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Comment 6•24 years ago
|
||
mass verification of WorksForMe bugs: to find all bugspam pertaining to this,
set your search string to "IfItWorksForSlappyTheSquirrelThenItWFM".
if you think this particular bug is *still* an open issue, please make sure of
the following before reopening:
a. that it's still a problem with ***recent trunk builds*** on the all
appropriate platform[s]
b. provide clear steps to reproduce (unless a good test case is already in the
bug report), making sure it pertains to the original problem (avoid morphing as
much as possible :)
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•