Bỏ qua đến nội dung

remove linebreaks / do word wrap

Chờ xử lý #anki #addon #remove #linebreaks #word #wrap
https://forums.ankiweb.net/t/remove-linebreaks-do-word-wrap-fork-for-2-1-official-thread/160
27/8/2025

Cách tải addon remove linebreaks / do word wrap

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

2028179508

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 2028179508 và copy

39

Mô tả chi tiết

This add-on tries to remove all line breaks from selected text or when no text is selected the whole field. This is e.g. useful when pasting text from PDF files.

This add-on offers some configuration options (like the shortcut).

You should adjust the default shortcut combination. If the shortcut suddenly stops working you should check if you have a shortcut conflict: If the same shortcut is set twice (e.g in Anki and one add-on or in two add-ons) then the shortcut is not working anymore.

some features

if text is selected, only the selection is affected. can be called from context menu you can undo the action with Ctrl+Z tries to preserve double line breaks the add-on tries to remove ”-” which are at the end of the line. A crude algorithm is used that might remove too much or too little.

Versions

2025-08-27 fix for 25.02+ 2022-09-28 fix for 2.1.50+, better soft hyphen removal, some code cleanup 2021-12-11 new icon I like better, misc 2021-04-12 fix for 2.1.41+ 2020-05-11 always undo with Ctrl/Cmd+Z, keep formatting when replacing whole field contents. Both changes are made possible by moving the replacing code from python to js (in the webview). Now the add-on always tries to remove ”-” at the end of a line, there’s no more user setting to deactivate this. If you still have such a user setting it will have no effect. 2019-04-11 initial release

Problems, Bugs, Errors, Improvements There’s a good chance that you’ll find bugs. If you find one or have a bug fix or improvement you can tell me in the official support forum or on github.

other authors This add-on is an extended modification of RemoveLinebreak (which has been unchanged for over three years and looks abandoned).

2016 Remco32 2014 Jeff Baitis 2022 abdnh (pull request 4)


Liên kết hỗ trợ


Reviews (30)

👍 2026-02-14

works very well

👍 2026-01-30

I knew there would be a quick fix like this, but I kept postponing checking until I developed a deeply stubborn habit of manually removing the line breaks for just one more card. After this went on for a year, I said “Enough!”, and found this addon. I am SO thrilled every time I use it, and can’t believe I didn’t check earlier. THANK YOU!

👍 2025-12-27

Excelente extensão, ajuda muito a formatar corretamente os textos inseridos de outros locais. Muito útil.

👍 2025-12-19

Works very good, removes - on linebreak

👍 2025-11-10

Works great! Didn’t realize that it was a button that removed the line breaks but it works perfectly

👍 2025-10-22

Exactly what I’ve been looking for!!

👍 2025-09-02

After latest update it works, thank you Comment from author before post was edited have you tried the lastest update?

👍 2025-08-28

Very useful add-on. It works with Anki 25.02.5.

👍 2025-06-28

cara, voce tem meu respeito o considero com amigo, obrigado por me ajudar com meus estudos , que Deus lhe abençoe.

👍 2025-03-11

Simple yet effective

👍 2025-02-08

i love this addon!

👍 2024-12-31

Excelente!

👍 2024-12-31

It works

👍 2024-12-23

Saves me a lot of annoyance after copying from PDFs!

👍 2024-10-04

So helpful, thank you so much!

👍 2023-11-20

I use this add-on every day when creating flashcards from PDF documents. It’s one of my favorites.

👍 2023-10-01

Great addon. Please add the option “Paste without line breaks” in the context menu to paste inmediately without line breaks.

👍 2022-12-01

Amazing. Thank you

👍 2022-11-14

Thanks for the update!

👍 2022-09-28

1/20/2021: It is soo great that it removes hypens!

09/28/2022: Thankks for the update!

👍 2022-09-22

This add-on is so helpful, I use it for textbooks that have many page breaks, and creating flashcards was so much faster, I would apreciate so much if you could update this add-on now that the courses began again.

👍 2022-08-24

Very useful!!!

👍 2022-08-08

thank you so much for such a great work. I have been searching for this add on forever !!!

👍 2022-04-04

nice job, but it not work in my m1 mac qt6 edition,could you update this addon to adapt the newest edition

👍 2021-12-13

Very very useful - especially if you copy text from pdf. Many thanks!

Proposal for a useful option (at least for me): pdf texts (from books) often have Non-breaking space which fucks up my cards every time. So, what I must do: go to the browser, select the cards, do a find and replace: replacing “&nbsp” with ” ” (just a normal space). That’s quite cumbersome. If possible (and it’s probably easily implemented) this option could be added to the addon. Comment from author that sounds useful. I’l

👍 2021-07-03

Thank you so much!

Is there an way to automaticly do this when paste?

👍 2021-04-13

Essential if you work with digital text books often. Thanks for the update!

👍 2021-02-24

Very good, incompatible with Customize Editor Stylesheet https://ankiweb.net/shared/info/1215991469

👍 2020-12-27

الف رحمة على والديك

God bless you and your parents

👍 2020-08-17

it works.