Line endings in forum... - Page 1
Forum section: electronics / general

author: westfw
author_rank: Super Contributor
timestamp: September 05, 2024, 08:44:56 pm
content: What's up with line endings in forum submissions?On my Mac, line endings that I type ("return" key) tend to be ignored; I need to type shift-return. or multiple returns to actually get a newline.On my PC, text entered as double spaced (hit return twice) ends up as triple spaced when actually posted.So the Mac text entry seems to be omitting newlines, and the PC is adding extras??!!(It's been doing this for ages, BTW. Not "new" behavior.)

author: ebastler
author_rank: Super Contributor
timestamp: September 05, 2024, 09:29:02 pm
content: Using Chrome on Windows 10, and the "regular" (not simplified-for-mobile) version of the forum, I don't see any anomalies. Could you please give details about the OS versions and browsers you are using?I typed two carriage returns before this line.And one carriage return before this line.And another two before this final line.

author: Ian.M
author_rank: Super Contributor
timestamp: September 05, 2024, 10:50:00 pm
content: It probably also has to do with whether or not you use the WYSIWYG editorProfile: Look and Feel:Show WYSIWYG editor on post page by default.

author: brucehoult
author_rank: Super Contributor
timestamp: September 05, 2024, 10:51:28 pm
content: Mac Chrome 127.0.6533.89 (Official Build) (arm64)I typed two carriage returns before this lineAnd one before this lineAnd two before this line

author: brucehoult
author_rank: Super Contributor
timestamp: September 05, 2024, 10:56:26 pm
content: Quote from: Ian.M on September 05, 2024, 10:50:00 pmI see lots of buttons to enter emojies, make textboldoritalicorunderlinedorsuperscriptorsubscriptortypewriteretc and that adds BBcode to the text.I didn't know this forum had another option! I default to markdown on Reddit but you can switch back and forth to WSIWYG there at will while composing a reply with a button click.

author: Ian.M
author_rank: Super Contributor
timestamp: September 05, 2024, 11:22:09 pm
content: Code:[quote author=brucehoult link=topic=439071.msg5631651#msg5631651 date=1725576688]Mac Chrome 127.0.6533.89 (Official Build) (arm64)I typed two carriage returns before this lineAnd one before this lineAnd two before this line... and that's what you got.

author: Ian.M
author_rank: Super Contributor
timestamp: September 05, 2024, 11:32:29 pm
content: Hmm.... the WYSIWYG editor either isn't very WYSIWYG or maybe is an addon that's disabled/not installed here, and I was mistaken - that setting simply controls whether or not the Quick Reply box is visible by default or has to be expanded to show it. Sory to have wasted your time.Way Way back I remember similar issues pasting stuff into the Microchip user forums, where how many new lines you got depended on the browser and version, your OS, and even what application the text was copied from. Pasting from MS Word was notably problematic, and the only somewhat reliable workaround was to first paste into Notepad (or your OS's default text editor) and re-copy it to ensure the line endings were in OS default form that the browser was expecting.

author: ledtester
author_rank: Super Contributor
timestamp: September 05, 2024, 11:33:51 pm
content: Does it happen on other online forums (I am supposing not but I thought I should ask)?Does it happen on other SMF (Simple Machines Forum) sites?There is another SMF forum here:https://www.simplemachines.org/community/index.php?They are running a later revision of SMF but they might also know other online sites that are using SMF.

author: brucehoult
author_rank: Super Contributor
timestamp: September 06, 2024, 12:02:04 am
content: Quote from: Ian.M on September 05, 2024, 11:22:09 pmThat's not what I see if I hit "Quote" on my own comment. There is no blank line between the "And two before this line" and the "".

author: Ian.M
author_rank: Super Contributor
timestamp: September 06, 2024, 12:45:30 am
content: I've just verified I hadn't accidentally altered the quote while wrapping it in code tags. I'm using Chromium Version 126.0.6478.127 (Official Build) (64-bit) fromhttps://chromium.woolyss.com/on Win10 22H2.YMMV

author: brucehoult
author_rank: Super Contributor
timestamp: September 06, 2024, 01:14:07 am
content: Quote from: Ian.M on September 06, 2024, 12:45:30 amI also don't see an extra blank line on Chrome 128.0.6613.119 (Official Build) (64-bit) (cohort: M128 Rollout) on Windows 11.

author: westfw
author_rank: Super Contributor
timestamp: September 06, 2024, 04:35:25 am
content: ok; this is windows 11, chrome (latest)one return before this linetwo returns before this lineand one again.

author: RoGeorge
author_rank: Super Contributor
timestamp: September 06, 2024, 07:29:05 am
content: It's the WYSIWYG editor. Switch to the HTML editing mode.Otherwise, the change of the current editor used by this SMF version with a new editor was already discussed. It was pilot tested here and many were very unhappy with the new editor. It was more buggier than the current editor, and the new bugs were bigger/more annoying:https://www.eevblog.com/forum/chat/are-there-any-eevblog-server-app-youd-like-to-see-installed/msg4562176/#msg4562176Eventually the forum editor stayed as it is, which is a good thing.