Comments (6)
Looking at the code it does indeed not trim the spaces from the beginning nor the end. @gavinking I assume the docs are correct here and it's the implementation that's wrong?
from ceylon-sdk.
Dunno, what do y'all think it should do?
Sent from my iPhone
On 02/01/2013, at 7:11 PM, Tako Schotanus [email protected] wrote:
Looking at the code it does indeed not trim the spaces from the beginning nor the end. @gavinking I assume the docs are correct here and it's the implementation that's wrong?
—
Reply to this email directly or view it on GitHub.
from ceylon-sdk.
I think it should trim, like the doc text says.
from ceylon-sdk.
I think that trimming and collapsing should be done as described by the docs.
But I wonder if the attribute shouldn't be named normalizeSpace (or normalizeWhitespace) instead and normalize should be used for Unicode Normalization (http://www.unicode.org/faq/normalization.html). This would be more aligned with Java (http://docs.oracle.com/javase/6/docs/api/java/text/Normalizer.html) and even NET (http://msdn.microsoft.com/en-us/library/system.string.normalize.aspx). I don't know if such an API breakage would be possible at the current stage, but it might be worth thinking about.
from ceylon-sdk.
@tombentley could you move this issue to ceylon.language if it isn't already fixed please?
from ceylon-sdk.
Opened issue on ceylon.language
from ceylon-sdk.
Related Issues (20)
- http.server.Request.read() and "unterminated" strings HOT 1
- Ceylon logging should support loggers with class name HOT 1
- JavaList should throw IOOBE for bad indexes HOT 2
- change pattern for attributes in `ceylon.html` HOT 4
- Regex stickiness
- ceylon.test::parameters is unintuitive when test is wrapped in a class HOT 1
- ceylon.test::parameters is unintuitive when test is wrapped in a class
- make JavaMap, JavaSet, JavaList serializable
- JDK 9 adds SSLEngineResult.HandshakeStatus.NEED_UNWRAP_AGAIN
- Loading files from the classpath throws FileSystemNotFoundException
- Bad class file error using ceylon.file 1.3.4-SNAPSHOT
- ceylon.time.iso8601::parseDayOfMonth and parseDate fail for leap day HOT 5
- ceylon.time.Period compare and equals incompatible HOT 2
- ceylon.time.Period should be `Invertible` HOT 4
- Decimal == AnythingElse causes assertion failure HOT 3
- use 'new' enum style instead of old 'object' style HOT 3
- ceylon.time.Duration should satisfy Summable, Invertible, and Comparable
- assertThateException -> ExceptionAssert can't handle member exception classes
- promlem with parsing february 29 in leap year HOT 2
- ceylon test -F fails with AssertionError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceylon-sdk.