Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ttconv: Also replace carriage return with spaces.#6526

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

QuLogic
Copy link
Member

Multi-line strings will cause issues in comments since the secondary lines will not be comments. This replacement is already done for newline characters (\n), but not carriage return (\r) which is prevalent on Windows.

I went with the simpler route of just replacing with a space instead of trying to compress\r\n because that would require shifting the entire string and would be a more involved change.

I assume that changingttconv is alright even though it's external since I can't find an upstream and there are already comments to the effect that it has already been modified.

Fixes#5862.

Multi-line strings will cause issues in comments since the secondarylines will not be comments. This replacement is already done for newlinecharacters (\n), but not carriage return (\r) which is prevalent onWindows.
@tacaswelltacaswell added this to the2.0 (style change major release) milestoneJun 3, 2016
@tacaswell
Copy link
Member

👍 I was hoping this had a simple fix like this.

@mdboom should probably review this before it is merged.

@jenshnielsenjenshnielsen merged commit494c4f6 intomatplotlib:masterJun 13, 2016
jenshnielsen added a commit that referenced this pull requestJun 13, 2016
ttconv: Also replace carriage return with spaces.
@jenshnielsen
Copy link
Member

Backported to 2.x as77caea0

@QuLogicQuLogic deleted the ttconv-carriage-return branchJune 13, 2016 21:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
v2.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@tacaswell@jenshnielsen@mdboom

[8]ページ先頭

©2009-2025 Movatter.jp