Skip to content

Commit 3047651

Browse files
#574 Incorrect Constant Names in \Style\Font.php
Correct constants mapped to "dotDash" and "dotDashHeavy", leaving old spellings for backwards compatibility.
1 parent cd2e7f7 commit 3047651

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/PhpWord/Style/Font.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ class Font extends AbstractStyle
3333
const UNDERLINE_DASHLONG = 'dashLong';
3434
const UNDERLINE_DASHLONGHEAVY = 'dashLongHeavy';
3535
const UNDERLINE_DOUBLE = 'dbl';
36-
const UNDERLINE_DOTHASH = 'dotDash';
37-
const UNDERLINE_DOTHASHHEAVY = 'dotDashHeavy';
36+
const UNDERLINE_DOTHASH = 'dotDash'; // Incorrect spelling, for backwards compatibility
37+
const UNDERLINE_DOTHASHHEAVY = 'dotDashHeavy'; // Incorrect spelling, for backwards compatibility
38+
const UNDERLINE_DOTDASH = 'dotDash'; // Correct spelling
39+
const UNDERLINE_DOTDASHHEAVY = 'dotDashHeavy'; // Correct spelling
3840
const UNDERLINE_DOTDOTDASH = 'dotDotDash';
3941
const UNDERLINE_DOTDOTDASHHEAVY = 'dotDotDashHeavy';
4042
const UNDERLINE_DOTTED = 'dotted';

0 commit comments

Comments
 (0)