Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line wrapping width system dependent #49

Open
farindk opened this issue Sep 27, 2016 · 3 comments
Open

line wrapping width system dependent #49

farindk opened this issue Sep 27, 2016 · 3 comments

Comments

@farindk
Copy link

farindk commented Sep 27, 2016

I am using a2po for the same project on two different systems (Ubuntu 14.04 and 16.04).
Apparently a2po is using different paragraph widths for line wrapping on both systems, which results in a lot of diffs like this:

-"The image file is missing. Unfortunately, you cannot edit the image without.\n"
+"The image file is missing. Unfortunately, you cannot edit the image "
+"without.\n"

when switching between systems. It would be great to fix the paragraph width with a command line parameter to prevent this problem.

@farindk
Copy link
Author

farindk commented Oct 6, 2016

It appears that I might have been wrong. It is not a2po using different line widths, but poedit saving at a different width.

Still, it would be very helpful to specify the line width on the command line to use the same width as your favourite editor.

@miracle2k
Copy link
Owner

I had this problem myself but never came around to fixing it. A pull request would be welcome.

@rv0
Copy link
Contributor

rv0 commented Sep 6, 2019

Here's a pull request:
#60

However, when using PoEdit, it is only useful when completely disabling the line wrapping (by specifying 0 and disabling it in poedit settings). This is not really an issue for us and makes more sense from version control perspective anyway.

Why fixed width wrapping is problematic is because it seems there's different logic in the wrapping engines.. For example:
spaces:

-"this ends with a space "
-"and it wraps like this"
+"this ends with a space"
+" and it wraps like this"

or links:

-"this ends with a link http://"
-"www.google.com"
+"this ends with a link "
+"http://www.google.com"

There might be other difference in rendering and I haven't figured out any config for it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants