Correct double-quoted string whitespace trimming 99/67899/3
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 22:59:55 +0000 (23:59 +0100)
commit4c54b13cce497a61eedbe53d672672bb4bc3736e
treee4f3655bfca80ef29fdb071bbc85f9fe08634d6e
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]