Correct double-quoted string whitespace trimming 03/67903/4
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 4 Feb 2018 20:04:57 +0000 (21:04 +0100)
committerRobert Varga <nite@hq.sk>
Tue, 6 Feb 2018 09:07:00 +0000 (09:07 +0000)
commit64a36184b3e5266efc6a9fe48a521e5284275eb4
tree313f3577531250399ddd35a6aa2e665fe64dca4a
parent94f5aaa2a0c1dc256891a0e66404e9d2c6549ed9
Correct double-quoted string whitespace trimming

We need to trim leading and trailing whitespace when it comes from
YANG text, so that the resulting string matches expectations.

This patch adds the required trimming.

JIRA: YANGTOOLS-845
Change-Id: I21777583c5d18819e68c089cd9f2cf51179b0530
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 664c9179f9b7dc85a1cf7ef004fbd2da849dceae)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/Utils.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/UtilsTest.java [new file with mode: 0644]