View Single Post
 
Old 01-20-2023, 06:19 AM
Gabarito Gabarito is offline Windows 7 64bit Office 2010
Novice
 
Join Date: Jan 2023
Posts: 3
Gabarito is on a distinguished road
Default Line endings from Youtube text

There is a very mysterious event that I can not solve when copying and pasting some block of text. Maybe, someone could explain what happens here.


Every time I copy a content area from a Youtube video (description field) and paste it to a Microsoft Word document, text comes without CR/LF characters. I mean, all the text is placed as it was just only one line. Try yourself and see it.


But, if I paste the block of text to an UltraEdit (text editor) document, all the Carriage Return and Line Feed characters are placed as expected and correctly.


Because UltraEdit cannot see the hyperlinks inside the text, but Word can, I have no clue how to integrate a solution to get CR/LF characters and hyperlinks.


If I use Word, I got no line feeds.
If I use UltraEdit, I end up without hyperlinks.


Anyone has an idea for solve that puzzle?
And could explain what is going on with CR/LF characters from Youtube text?



After a while looking for a solution, for my big surprise, that very old Windows 98 text editor, called Write.exe could do the trick. But it's still failing to get hyperlinks from video timecode. It just catches them from links with "http" prefix.


I tried too many online text editors, GoogleDocs, Office 365, Zoho, EditPad and others. None of them place correctly line endings. But grab hyperlinks.


I'm advised that it's because unix-like lines terminations.
Any VBA or other workaround to get those correct line endings?



I'm still without a full solution.
Reply With Quote