Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Tikh
1 discussion post
I'm using this macro with ClipboardFusion software. The macro works great, but where the line break is removed, the necessary space that separates two words is removed as well.Please how can I edit the macro to solve this?

(NB. The source text I copy from is not justified.)

Thank you.
Jun 8, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
On line 34 of that script, you can add a space like this:

Code

builder.AppendLine(line + " ");


Hope that helps!
Jun 10, 2019  • #2
User Image
Tikh2
4 discussion posts
Quote:
On line 34 of that script, you can add a space like this:

Code

builder.AppendLine(line + " ");


Hope that helps!


Hi,

Sorry, I lost my first account.
Unfortunately, I did as you said but nothing changed!
Any help please!
Jul 3, 2019  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, maybe I'm confused on what you're looking for. Are you wanting it to add a space after each line, or a line break after each line, so that the end result looks like this?

line 1

line 2

line 3
Jul 3, 2019  • #4
User Image
Tikh2
4 discussion posts
Quote:
Ok, maybe I'm confused on what you're looking for. Are you wanting it to add a space after each line, or a line break after each line, so that the end result looks like this?

line 1

line 2

line 3


Thank you for following up with me. I will use an example to explain.

Following is an excerpt from a PDF doc opened using Adobe Acrobat.

Quote:
So where do all your action reminders go? On "Next Actions"
lists, which, along with the calendar, are at the heart of daily
action-management organization.


When I copy it to another prgram such as OneNote without the macro, it appears as above. The breaks are consistent with the PDF doc. I want to copy this text without these breaks. It should be one paragraph so that when I double click on any text inside, the whole text is selected.

When I use the said macro, it does the job but instead of leaving a space when the line break was before, two words become one. The same text is copied with the said code below. The error is highlighted.

[/QUOTE]So where do all your action reminders go? On "Next Actions"lists, which, along with the calendar, are at the heart of dailyaction-management organization.[/QUOTE]

I hope it is clear now. I look forward to hearing from you.
Jul 5, 2019  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ah ok, yep! Could you try deleting the downloaded Macro and importing the attached one instead? Please let me know how it works out.

Thanks!
Jul 5, 2019  • #6
User Image
Tikh2
4 discussion posts
I did excactly as you said, but nothing changed, same problem! I would be grateful, if you help me solve this. Thank you.
Jul 5, 2019  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I tested that one here and it's working for me. Could you send me the PDF document that you're copying from so that I can test with it here?

Thanks!
Jul 8, 2019  • #8
User Image
Tikh2
4 discussion posts
Quote:
I tested that one here and it's working for me. Could you send me the PDF document that you're copying from so that I can test with it here?

Thanks!


Thank you for your reply. I'm sure it is not the pdf file because the same occurs with different files. This is what I do:
1 Go to settings then Macro window
2 Remove the old macro
3 Import the one you attached
4 Copy something from a pdf file
5 Run the code to test it
6 The result I get has the same problem as the first macro

I found another software that does the thing without the error, but members who might want to use this one might be interested in a solution.

Thank you.
Jul 14, 2019  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Can you try these steps?

  • Set a key combination on the Macro
  • Highlight some text in the PDF
  • Press the key combination
  • Paste the text with Ctrl + V
Jul 15, 2019  • #10
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)