Permalink
Browse files

Refactor trailing whitespace in description

  • Loading branch information...
1 parent 432677c commit 15fc263b38297f72e317ab60305c933c555e718b @ingydotnet ingydotnet committed Oct 13, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/DU/RecipeParser.pm
View
@@ -31,8 +31,8 @@ cocktail: /
description: /
(<ALL>*?) # Description text
- (= <EOL> <BLANK>* <STAR> ) # Not the ingredients
- ~ # Remaining whitespace
+ <EOL>+
+ (= <BLANK>* <STAR> ) # Not the ingredients
/
# Ingredient parts
@@ -131,7 +131,6 @@ sub got_teaspoon { 'teaspoon' }
sub got_dash { 'dash' }
sub got_description {
- $_[1] =~ s/\s$//g;
$data->{description} = $_[1];
}

0 comments on commit 15fc263

Please sign in to comment.