Bug 768802
Summary: | Newline validation on leading and trailing string. | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Alex Eng <aeng> |
Component: | Usability | Assignee: | Alex Eng <aeng> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ding-Yi Chen <dchen> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.5 | CC: | damason, sflaniga, zanata-bugs |
Target Milestone: | --- | Keywords: | UserStory |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-23 04:33:15 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alex Eng
2011-12-19 02:06:35 UTC
Implemented in 1.5. See https://github.com/zanata/zanata/commit/d4e942d8d1d6420f561d003c6e181e6744894e87 Does not detect when newlines are present in the target but not the source. Validation should detect these cases given that any mismatch could result in an error. Properly detects when leading and trailing newlines are present in the source but not the target. A number of strings in Hibernate Core have a trailing newline followed by 8 spaces. This looks like a trailing newline but is technically just trailing whitespace and is not reported as missing by this validator - it is unclear how this should be treated, this could require an enhancement in the future for validating arbitrary leading/trailing whitespace. Implemented fix. See https://github.com/zanata/zanata/commit/8c5e2aee6e66704623c9a1dc18701786d600ff58 - updated to use localisable message strings - updated tag order algorithm to detect single moved tag - updated printf matching regex to match most standard variable patterns See https://github.com/zanata/zanata/commit/f8eaaa0666357c6fe284d6cf4618650ec3513fc0 https://github.com/zanata/zanata/compare/e69ee68374a74eac8535980bc7dd833ba7795b83...030653ed8063238147f95b7219d0838f75150194 UI updates, see: https://github.com/zanata/zanata/compare/030653ed8063238147f95b7219d0838f75150194...d24ee4588f41cc49290f17ec2aef518266d7edbb *** Bug 746140 has been marked as a duplicate of this bug. *** |