Opened 6 years ago
Last modified 6 years ago
#14230 new bug
Copy/paste issue from WebPositive
Reported by: | kneekoo | Owned by: | pulkomandy |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/WebPositive | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Described here: https://discuss.haiku-os.org/t/yab-asic-for-newbies/6988/12
I copied some code from a phpBB forum's <code> block and I pasted it in a few editors, only to get bad white-space for every indented line.
The leading and trailing white-space on the lines of code I copied got converted to other characters. Details quoted below.
I checked the copy/paste and the reformatted files with MCs hex viewer, and this is how the white-spaces are displayed in HEX in: the copy/paste file: C2 A0 (succession of these) the reformatted file: 20 (one or more) - ASCII 32 (space) the reformatted file: 09 (one or more) - ASCII 9 (TAB)
Note:
See TracTickets
for help on using tickets.
C2 A0 is non-breakable space. This is what WebKit uses internally when rendering things to HTML. If you copy from an HTML page, we don't remove these when translating back to text. If you copy from a text file (open and rendered as text by Web+) there will be no such problem.