Correct double-quoted string whitespace trimming 99/67899/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 4 Feb 2018 15:31:11 +0000 (16:31 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 4 Feb 2018 17:10:43 +0000 (18:10 +0100)
commit664c9179f9b7dc85a1cf7ef004fbd2da849dceae
tree5cb22ed4441697cf68077d3ac0d0dacb3b9f44ef
parente58cc423f7d61b556894f34826519b060b7c664f
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>
yang/rfc7952-parser-support/src/test/java/org/opendaylight/yangtools/rfc7952/parser/AnnotationTest.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/repo/ArgumentContextUtils.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/repo/AugmentContextUtilsTest.java [new file with mode: 0644]