Permalink
Browse files

Merge pull request #10 from ingydotnet/master

Description whitespace
  • Loading branch information...
2 parents 432677c + 15fc263 commit bef05076ea43d1b924b952ee8f953e58f196cf6f @frioux committed Oct 14, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/DU/RecipeParser.pm
@@ -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 bef0507

Please sign in to comment.