src/po_parser.ry in gettext-3.2.2 vs src/po_parser.ry in gettext-3.2.3
- old
+ new
@@ -1,11 +1,11 @@
# -*- mode: ruby; coding: utf-8 -*-
#
# po_parser.ry - ruby version of msgfmt
#
# Copyright (C) 2002-2008 Masao Mutoh <mutomasa at gmail.com>
-# Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
+# Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
# Copyright (C) 2012-2013 Haruka Yoshihara <yoshihara@clear-code.com>
#
# You may redistribute it and/or modify it under the same
# license terms as Ruby or LGPL.
@@ -168,10 +168,10 @@
@data = data
@fuzzy = false
@msgctxt = nil
@msgid_plural = nil
- str.strip!
+ str = str.strip
@q = []
until str.empty? do
case str
when /\A\s+/
str = $'