projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Experiment with support for multiple lines within a paragraph.
[gpl/argeo-suite.git]
/
publishing
/
org.argeo.publishing.ui
/
src
/
org
/
argeo
/
cms
/
text
/
IdentityTextInterpreter.java
diff --git
a/publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java
b/publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java
index 5c019e59b6191298af58b8c499f7138b5f9d3356..ce59ed6630f2bb3c613ffeff53574c00c79d1c9f 100644
(file)
--- a/
publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java
+++ b/
publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java
@@
-20,8
+20,7
@@
public class IdentityTextInterpreter implements TextInterpreter, CmsNames {
validateBeforeStoring(raw);
node.setProperty(CMS_CONTENT, raw);
} else {
validateBeforeStoring(raw);
node.setProperty(CMS_CONTENT, raw);
} else {
- throw new CmsException("Don't know how to interpret "
- + node);
+ throw new CmsException("Don't know how to interpret " + node);
}
} else {// property
Property property = (Property) item;
}
} else {// property
Property property = (Property) item;
@@
-33,6
+32,11
@@
public class IdentityTextInterpreter implements TextInterpreter, CmsNames {
}
}
}
}
+ @Override
+ public String readSimpleHtml(Item item) {
+ return raw(item);
+ }
+
@Override
public String read(Item item) {
try {
@Override
public String read(Item item) {
try {
@@
-58,8
+62,7
@@
public class IdentityTextInterpreter implements TextInterpreter, CmsNames {
return node.getProperty(CMS_CONTENT).getString();
} else {
return node.getProperty(CMS_CONTENT).getString();
} else {
- throw new CmsException("Don't know how to interpret "
- + node);
+ throw new CmsException("Don't know how to interpret " + node);
}
} else {// property
Property property = (Property) item;
}
} else {// property
Property property = (Property) item;
@@
-79,15
+82,13
@@
public class IdentityTextInterpreter implements TextInterpreter, CmsNames {
}
/** To be overridden, in order to support additional formatting. */
}
/** To be overridden, in order to support additional formatting. */
- protected String convertToStorage(Item item, String content)
- throws RepositoryException {
+ protected String convertToStorage(Item item, String content) throws RepositoryException {
return content;
}
/** To be overridden, in order to support additional formatting. */
return content;
}
/** To be overridden, in order to support additional formatting. */
- protected String convertFromStorage(Item item, String content)
- throws RepositoryException {
+ protected String convertFromStorage(Item item, String content) throws RepositoryException {
return content;
}
}
return content;
}
}