#3277 closed enhancement (fixed)
"Break" button and treat <cr> as break
Reported by: | anonymous | Owned by: | Emmanuel Blot |
---|---|---|---|
Priority: | normal | Milestone: | 0.10 |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | toolbar |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Please consider the following 2 thing:
- Adding a button that would insert
[[BR]]
when clicked - Treating carriage return as a new line
Attachments (2)
Change History (10)
comment:1 by , 19 years ago
Keywords: | toolbar added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 19 years ago
I think that if there's going to be a button it should add "\n\n"
instead of [[BR]]
, since the paragraph separation is generally more appropriate than forcing a linebreak.
comment:3 by , 19 years ago
I'm not sure whether a button is required to save a double hit on the return key in this case.
I was thinking about a shortcut to save from typing the long [[BR]]
syntax.
Btw, the proposed button refers to a carriage return + line feed, whereas a \n\n
introduces a paragraph break.
In other words, the question is: should the button produce a line break ([[BR]]
) or a paragraph break (\n\n
)?
comment:4 by , 19 years ago
Well, I don't think the buttons generally save time. I see them more as a way for new users to use some syntax if they haven't read the WikiFormatting docs yet. I think that the [[BR]]
should be used sparingly, but giving it a button would seem to encourage its use as a common practice. It sounds like the reporter has encountered users confused how to start a new line, but based on the usage of [[BR]]
I've seen on this site, most would've been more appropriate as a new paragraph. If a [[BR]]
button is deemed necessary I think that it should be preceded by a \n\n
button with the "¶" symbol.
by , 19 years ago
Attachment: | break-button.patch added |
---|
Add two "line break" and "new paragraph" buttons to the wiki toolbar
by , 19 years ago
Attachment: | edit_toolbar.png added |
---|
New wikitoolbar bitmap (replace existing htdocs/edit_toolbar.png file)
comment:6 by , 19 years ago
I've updated the patch and the bitmap to support both paragraph and line breaks.
comment:8 by , 17 years ago
http://trac.edgewall.org/ticket/3277# http://trac.edgewall.org/ticket/3277#
[
---- [[BR]] asdf
] == ==
Please find a patch that adds a line break button to the existing wiki toolbar.
You'll need to apply the patch file and overwrite the existing bitmap file with the attached one)
The second proposition (to treat a line break in the wiki edit area as a carriage return) would break existing wiki syntax, if not removing a very useful editing feature.