kudanai / osx_radheef

The Dhivehi Radheef compiled to work with the built-in dictionary services on OSX
3 stars 1 forks source link

issue with definition parsing adding unwanted newlines to some #1

Open kudanai opened 12 years ago

kudanai commented 12 years ago

some definitions do not always start with a (\d+) pattern. the way parsing is done now results in the text before this to be added as a separate definition on a new line.

eg:

ވަފަޓެ ނ (ގ.) ޅަފަށް. ތަކެތި ހަނުލާ އިރު މިޔައަށް އަރާ ކުރަކި ކަމެއް. ކެއްސާލާއިރު ކަރުތެރޭގައި ހުންނަ ކުރަކިކަން.

should be

ވަފަޓެ ނ (ގ.) ޅަފަށް. ތަކެތި ހަނުލާ އިރު މިޔައަށް އަރާ ކުރަކި ކަމެއް. ކެއްސާލާއިރު ކަރުތެރޭގައި ހުންނަ ކުރަކިކަން.