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

Convert LeftMargin, RightMargin, and FirstLineIndent to floats #262

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

ddaspit
Copy link
Contributor

@ddaspit ddaspit commented Oct 18, 2024

This change is Reviewable

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 69.96%. Comparing base (cc7c4ea) to head (f7fd79c).

Files with missing lines Patch % Lines
src/SIL.Machine/Corpora/UsfmStylesheet.cs 85.71% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #262   +/-   ##
=======================================
  Coverage   69.96%   69.96%           
=======================================
  Files         379      379           
  Lines       31781    31778    -3     
  Branches     4456     4456           
=======================================
- Hits        22236    22235    -1     
+ Misses       8511     8509    -2     
  Partials     1034     1034           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@johnml1135
Copy link
Collaborator

src/SIL.Machine/Corpora/UsfmStylesheet.cs line 423 at r1 (raw file):

                )
            )
            {

Why is the * 1000 removed? FirstLineIndent changes behavior - is this intended?

Copy link
Collaborator

@johnml1135 johnml1135 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit)

Copy link
Contributor Author

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @johnml1135)


src/SIL.Machine/Corpora/UsfmStylesheet.cs line 423 at r1 (raw file):

Previously, johnml1135 (John Lambert) wrote…

Why is the * 1000 removed? FirstLineIndent changes behavior - is this intended?

Scaling the float values by 1000 is what Paratext does and we were just emulating the behavior. I did a bit more investigation into why Paratext does this. It is because of a weird issue that is specific to Paratext.

Copy link
Collaborator

@johnml1135 johnml1135 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ddaspit)

@johnml1135 johnml1135 merged commit 7f2af4e into master Oct 24, 2024
4 checks passed
@johnml1135 johnml1135 deleted the usfm-tag-prop-fixes branch October 24, 2024 17:45
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

Successfully merging this pull request may close these issues.

3 participants