the song100 file in fortunes-zh package had additonal space after % in line 132

Bug #2046347 reported by Albert Xu
6
This bug affects 1 person
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/games/fortunes/song100|grep -n -v "%$"
18:%

the 18-the occurrence of % is in line 132 in the file.
and if use the command:
$ fortune -m "东溪" song100
(/usr/share/games/fortunes/song100)
%
题目:《东溪》
作者:梅尧臣(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-x64v3-xanmod1 x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: Budgie:GNOME
Date: Wed Dec 13 20:53:22 2023
PackageArchitecture: all
SourcePackage: fortune-zh
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Albert Xu (albertxu) wrote :
Revision history for this message
Albert Xu (albertxu) wrote (last edit ):

Fix is easy, just remove the additional spaces after % in line 132, and run strfile song100 to regenerate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.