Correct double-quoted string whitespace trimming 03/67903/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 4 Feb 2018 20:04:57 +0000 (21:04 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 4 Feb 2018 20:08:08 +0000 (21:08 +0100)
commit06aa2008e3f29f53fe2af802b49f9c9a8c912c6b
tree43a98bab5c05f3b30ae2243780163b552def2a99
parentdd6442e7eb7dbe9ba102dcd9abb494610c0fcf52
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]