MyInfo editor adds extra spaces

Discuss MyInfo and get help here
Post Reply
nocar
Posts: 68
Joined: Sat Dec 01, 2018 2:03 am

MyInfo editor adds extra spaces

Post by nocar »

When I write a note and enter a blank line (i.e. I hit keyboard Enter twice), there are no extra characters at the start of the blank line in the MyInfo 7 editor window. However, if I then copy or export that note text, an extra space appears at the start of each blank line.

I can illustrate this by exporting a note or copying the text in the MyInfo editor to another program. When exporting, this happens with files generated by File | Export to Folders and Files and also with File | Export as TXT or RTF file.

Attached is an image from MS Word showing an extra space before each paragraph mark on a blank line.
Extra spaces.png
Extra spaces.png (29.25 KiB) Viewed 4409 times
This is not a huge problem but it is a nuisance for those wanting to convert TXT files to MarkDown, the blank space before the paragraph interferes with formatting.
lbw2112
Posts: 139
Joined: Tue Mar 12, 2019 12:55 am

Post by lbw2112 »

Just out of curiosity, have you tried exporting or copying into a program other than MS Word, like even just Notepad? Those are hard return marks and other symbols that are hidden (or shown) by the program displaying them.

If it's only in MS Word then you may have "Show Paragraph marks and other hidden symbols" turned on in MS Word.
nocar
Posts: 68
Joined: Sat Dec 01, 2018 2:03 am

Post by nocar »

I do have Show Paragraph marks turned on in MS Word, but it’s not the paragraph mark that I am talking about. It’s the extra character that precedes it. I call that character a “space” because that single space also shows up at the start of blank line when I export to a TXT file and open it in a plain text editor like Notepad, Notepad++ or EditPad.

That extra space also is there when I cut and paste directly from the MyInfo editor window into a plain text editor.
lbw2112
Posts: 139
Joined: Tue Mar 12, 2019 12:55 am

Post by lbw2112 »

Ah, I see now. You were clear in the first post I just didn't understand it. Good catch.
lbw2112
Posts: 139
Joined: Tue Mar 12, 2019 12:55 am

Post by lbw2112 »

Petko, can this be fixed or is it by design?
Petko
MyInfo Support
Posts: 3237
Joined: Sun Jul 25, 2004 4:33 pm
Contact:

Post by Petko »

I am afraid that this is a limitation of HTML. In order paragraph to be preserved and not trimmed, it needs at least a space. I know that this is a different from the regular text editors like Ms Word, but at this time I can't offer a solution..
theone
Posts: 23
Joined: Tue Jan 21, 2020 5:22 pm

Post by theone »

Can a simple solution be to change the code engine for each export type (Docx, RTF, TXT, etc), to take out the extra space for each exported and saved file (Docx, RTF, TXT etc) and leave the source Myinfo file as is currently?
Petko
MyInfo Support
Posts: 3237
Joined: Sun Jul 25, 2004 4:33 pm
Contact:

Post by Petko »

The problem is that MyInfo 7 note content is saved in HTML, so these extra spaces are saved in the note itself.
theone
Posts: 23
Joined: Tue Jan 21, 2020 5:22 pm

Post by theone »

Thanks Petko,
So your export module is all based on the HTML native file format. Formally clean & logical approach. Changing each export sub-module to parse & take out the space will be a great hassle, while keeping html essence. I would not change the export core, keeping it native HTML saves many future headaches. It is not a big issue anyway.

I also noticed a bug that crashes the app most times. You know many professional writers use a mouse (Wired or wireless or bluetooth) that has 2 side buttons. These are for going forward and back in apps like browsers, word-processors etc. Also works on multi platforms (Win, Mac/iOS, Android's BACK button, Linux). When I use the back button for v7.2, first it freezes the app then crashes it. Please try with such a mouse with 2 side buttons for Back & Forward. I tried 2 different mouse types, same problem. The mapped function should be like the toolbar icons for going back & forward.

Did not want to create a new thread, sorry to OP for off-topic hijack. Back to topic.
Petko
MyInfo Support
Posts: 3237
Joined: Sun Jul 25, 2004 4:33 pm
Contact:

Post by Petko »

theone wrote: Wed Aug 04, 2021 4:38 pmI also noticed a bug that crashes the app most times. You know many professional writers use a mouse (Wired or wireless or bluetooth) that has 2 side buttons. These are for going forward and back in apps like browsers, word-processors etc. Also works on multi platforms (Win, Mac/iOS, Android's BACK button, Linux). When I use the back button for v7.2, first it freezes the app then crashes it. Please try with such a mouse with 2 side buttons for Back & Forward. I tried 2 different mouse types, same problem. The mapped function should be like the toolbar icons for going back & forward.
Thanks, I will check that.
Post Reply