the song100 file in fortunes-zh package had additonal space after % in line 132
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fortune-zh (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
the song100 file in fortunes-zh package had additonal space after % in line 132
$ grep "^%" /usr/share/
18:%
the 18-the occurrence of % is in line 132 in the file.
and if use the command:
$ fortune -m "东溪" song100
(/usr/share/
%
题目:《东溪》
作者:梅尧臣(1002-1060)
行到东溪看水时,坐临孤屿发船迟。
野凫眠岸有闲意,老树着花无丑枝。
短短蒲耳齐似剪,平平沙石净于筛。
情虽不厌住不得,薄暮归来车马疲。
%
题目:《鲁山山行》
作者:梅尧臣(1002-1060)
适与野情惬,千山高复低。
好峰随处改,幽径独行迷。
霜落熊升树,林空鹿饮溪。
人家在何许?云外一声鸡。
%
The output contain two piece of song lyrics, which is not the expected result.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: fortunes-zh 2.98
Uname: Linux 6.1.66-
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: Budgie:GNOME
Date: Wed Dec 13 20:53:22 2023
PackageArchitec
SourcePackage: fortune-zh
UpgradeStatus: No upgrade log present (probably fresh install)
Fix is easy, just remove the additional spaces after % in line 132, and run strfile song100 to regenerate.