brailleapps / dotify.formatter.impl

Provides an implementation of the formatter interfaces in dotify.api
GNU Lesser General Public License v2.1
0 stars 6 forks source link

Fix interpretation of nested blocks with volume-keep-priority #111

Closed bertfrees closed 5 years ago

bertfrees commented 5 years ago

This is one commit from https://github.com/brailleapps/dotify.formatter.impl/pull/97 that I was able to separate from the rest.

See also https://github.com/brailleapps/dotify.formatter.impl/pull/97#issuecomment-490462994.

This changes how the actual volume-keep-priority values between/before/after blocks are computed from the specified values of the blocks. It was not so clear how it worked before, but this is how it works now:

This behavior should also be made clear in the OBFL specification.

This change also significantly simplifies the code.

bertfrees commented 5 years ago

@kalaspuffar Does this have any effect on the regression tests?

kalaspuffar commented 5 years ago

Hi @bertfrees

I've reviewed the code. I'm starting the regression tests now.

Best regards Daniel

kalaspuffar commented 5 years ago

Hi @bertfrees

162 changes to the regression tests. Need to analyze it further to see what might be the changes.

best regards Daniel

kalaspuffar commented 5 years ago

Hi @bertfrees and @PaulRambags

I've now run the regression tests for this PR too and the result is identical to earlier results so this change did not change the end result. So it seems safe to merge this one as well when @PaulRambags have reviewed the code.

Best regards Daniel