Skip to content

Conversation

@haarg
Copy link
Contributor

@haarg haarg commented Oct 10, 2024

Tabs for alignment don't work well in verbatim sections. The indentation of the code may be stripped when being displayed, resulting in the tab alignment not matching the intention. This can currently be seen on https://metacpan.org/pod/perlop and https://perldoc.perl.org/perlop

Since most of the code uses 4 space indents, normalize all of the indentation to use 4 spaces.

Copy link
Contributor

@leonerd leonerd left a comment

Choose a reason for hiding this comment

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

LGTM

@jkeenan
Copy link
Contributor

jkeenan commented Oct 10, 2024

This cannot be merged as is. It fails the t/porting/podcheck.t. See end of https://github.com/Perl/perl5/actions/runs/11281442619/job/31376683077?pr=22658 for options on fixing, run make test_porting before re-pushing. Thanks.

@haarg haarg force-pushed the haarg/perlop-fix-improve-indent-alignment branch 2 times, most recently from 997089d to 8684cb8 Compare October 10, 2024 23:26
Copy link
Contributor

@jkeenan jkeenan left a comment

Choose a reason for hiding this comment

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

make test_porting now passing. Recommend squash before merge.

Tabs for alignment don't work well in verbatim sections. The indentation
of the code may be stripped when being displayed, resulting in the tab
alignment not matching the intention. This can currently be seen on
https://metacpan.org/pod/perlop and https://perldoc.perl.org/perlop

Since most of the code uses 4 space indents, normalize all of the
indentation to use 4 spaces.
@haarg haarg force-pushed the haarg/perlop-fix-improve-indent-alignment branch from 8684cb8 to 1bfdc64 Compare April 17, 2025 20:27
@haarg haarg merged commit 135abef into blead Apr 18, 2025
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants