Skip to content

Commit 74c7ebe

Browse files
committed
Merge branch 'release/2.3.1'
2 parents 83c574e + a59e655 commit 74c7ebe

File tree

6 files changed

+28
-13
lines changed

6 files changed

+28
-13
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ This change log begins with the first ever pre-release version of what was then
88

99
From release 2.0.0 the version numbering has attempted to adhere to the principles of [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010

11+
## Release 2.3.1 - 2022-10-27
12+
13+
This release includes _PasHi_ v2.3.1 and _PasHiGUI_ v1.3.1
14+
15+
### PasHi 2.3.1 [build 16]
16+
17+
* Corrected help screen entry for `--line-number-start` command . [Issue 63]
18+
19+
### PasHiGUI 1.3.1 [build 10]
20+
21+
* Fixed compilation problem causing `UUtils` unit to fail to compile from a fresh build. [Issue 64]
22+
* Fixed bug where the `frag` alias for the `fragment` parameter of the `doc-type` config command was not being recognised. [Issue 66]
23+
1124
## Release 2.3.0 - 2022-10-22
1225

1326
This release includes _PasHi_ v2.3.0 and _PasHiGUI_ v1.3.0

Src/Assets/Help.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ PasHi supports the following commands:
116116
zero - pad with zeros
117117
dash - pad with dashes (-)
118118
dot - pad with dots (.).
119-
--line-number-start -z Determines line number of first line of listing,
120-
in range 1..9999 [default 1].
119+
--line-number-start -z Determines line number of first line of listing.
120+
The next parameter specifies a line number in the
121+
range 1..9999 [default 1].
121122
--line-number-width -i Determines minimum width, in characters, occupied
122123
by line numbers. Line numbers are padded to this
123124
width if necessary. The next parameter specifies
@@ -188,4 +189,4 @@ containing spaces must not be enclosed in quotes. The "help" and "version"
188189
commands must *not* be used in a config file otherwise PasHi will exit with an
189190
error.
190191

191-
PasHi's application data directory is %AppData%\DelphiDabbler\PasHi.
192+
PasHi's application data directory is %AppData%\DelphiDabbler\PasHi.

Src/GUI/FmMain.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,9 @@ procedure TMainForm.pcMainMouseLeave(Sender: TObject);
602602

603603
procedure TMainForm.Render;
604604
begin
605-
if fOptions.GetParamAsStr('doc-type') = 'fragment' then
605+
if IsStrInList(
606+
fOptions.GetParamAsStr('doc-type'), ['fragment', 'frag'], False
607+
) then
606608
fDocument.OutputType := doFragment
607609
else
608610
fDocument.OutputType := doComplete;

Src/GUI/FrOptions.UDocType.pas

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ implementation
4545

4646
uses
4747
StrUtils,
48-
Types;
48+
Types,
49+
UUtils;
4950

5051
{$R *.dfm}
5152

@@ -99,7 +100,7 @@ procedure TDocTypeOptionsFrame.Initialise(const Options: TOptions);
99100
Idx: Integer;
100101
begin
101102
DocType := Options.GetParamAsStr('doc-type');
102-
if DocType = 'fragment' then
103+
if IsStrInList(DocType, ['fragment', 'frag'], False) then
103104
begin
104105
rbDocTypeFragment.Checked := True;
105106
rbDocTypeComplete.Checked := False;

Src/GUI/UUtils.pas

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ implementation
3636

3737

3838
uses
39-
// Project
40-
UConsts,
4139
// Delphi
4240
SysUtils, ActiveX;
4341

VERSION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PasHi & PasHiGUI file & product version numbers
22

3-
cmdlinefilever=2.3.0
4-
cmdlinebuild=15
5-
guifilever=1.3.0
6-
guibuild=9
7-
productver=2.3.0
3+
cmdlinefilever=2.3.1
4+
cmdlinebuild=16
5+
guifilever=1.3.1
6+
guibuild=10
7+
productver=2.3.1

0 commit comments

Comments
 (0)