christophe-lejeune/Cassandre — Issue #10: Cassandre text payload need to be updated.
Author: chao
Created: 2011-12-02 10:18:02+00:00
State: open
Labels: Feature

LaSuli has a bug, when the web page source code is updated (even a white space), it could break the highlights. See issue #16 (https://github.com/chao/LaSuli/issues/16)

I have been thinking of this for days, but I still have no idea how to fix it perfectly.
However, I do have a solution.

We just have to ignore all white spaces (no matter it's significant of insignificant) both in highlight creation and rendering. This will fix the bug for most of web pages.

But we will have to update Cassandre. We need to change the payload of text from "it's a example" to "it's a example". Otherwise the " " also will be ignored during highlight rendering.