Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#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)

break-button.patch (1.5 KB ) - added by Emmanuel Blot 18 years ago.
Add two "line break" and "new paragraph" buttons to the wiki toolbar
edit_toolbar.png (978 bytes ) - added by Emmanuel Blot 18 years ago.
New wikitoolbar bitmap (replace existing htdocs/edit_toolbar.png file)

Download all attachments as: .zip

Change History (10)

comment:1 by Emmanuel Blot, 18 years ago

Keywords: toolbar added
Owner: changed from Jonas Borgström to Emmanuel Blot
Status: newassigned

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.

comment:2 by Matthew Good, 18 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 Emmanuel Blot, 18 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 Matthew Good, 18 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.

comment:5 by Emmanuel Blot, 18 years ago

Yes, I think both buttons would be nice. I'll send a new patch.

by Emmanuel Blot, 18 years ago

Attachment: break-button.patch added

Add two "line break" and "new paragraph" buttons to the wiki toolbar

by Emmanuel Blot, 18 years ago

Attachment: edit_toolbar.png added

New wikitoolbar bitmap (replace existing htdocs/edit_toolbar.png file)

comment:6 by Emmanuel Blot, 18 years ago

I've updated the patch and the bitmap to support both paragraph and line breaks.

comment:7 by Emmanuel Blot, 18 years ago

Resolution: fixed
Status: assignedclosed

Implemented in [3467]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Emmanuel Blot to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.