}
else if(EQUAL == character) // '='
{
- addToNameValue = false; // next read characters will be added to the value.
- SkipWhiteSpace(tagBuffer, tagEndBuffer);
+ if(isQuotationOpen)
+ {
+ ++valueLength;
+ }
+ else
+ {
+ addToNameValue = false; // next read characters will be added to the value.
+ SkipWhiteSpace(tagBuffer, tagEndBuffer);
+ }
}
else if(QUOTATION_MARK == character) // '\''
{
* @brief Processes anchor tag for the color-run & underline-run.
*
* @param[in,out] markupProcessData The markup process data
+ * @param[in] markupPropertyData The markup property data
* @param[in] tag The tag we are currently processing
* @param[in,out] anchorStack The anchors stack
* @param[in,out] colorRuns The container containing all the color runs
*/
void ProcessAnchorForRun(
MarkupProcessData& markupProcessData,
+ MarkupPropertyData& markupPropertyData,
const Tag& tag,
StyleStack<AnchorForStack>& anchorStack,
Vector<ColorRun>& colorRuns,
anchor.endIndex = 0u;
anchor.colorRunIndex = colorRunIndex;
anchor.underlinedCharacterRunIndex = underlinedCharacterRunIndex;
+ anchor.markupClickedColor = markupPropertyData.anchorClickedColor;
// Create a new run.
ColorRun colorRun;
anchorForStack.underlinedCharacterRunIndex = underlinedCharacterRunIndex;
// Init default color
- colorRun.color = Color::MEDIUM_BLUE;
- underlinedCharacterRun.properties.color = Color::MEDIUM_BLUE;
+ colorRun.color = markupPropertyData.anchorColor;
+ underlinedCharacterRun.properties.color = markupPropertyData.anchorColor;
underlinedCharacterRun.properties.colorDefined = true;
ProcessAnchorTag(tag, anchor, colorRun, underlinedCharacterRun);
} // namespace
-void ProcessMarkupString(const std::string& markupString, MarkupProcessData& markupProcessData)
+void ProcessMarkupString(const std::string& markupString, MarkupPropertyData& markupPropertyData, MarkupProcessData& markupProcessData)
{
DALI_LOG_INFO(gLogFilter, Debug::Verbose, "markupString: %s\n", markupString.c_str());
else if(TokenComparison(MARKUP::TAG::ANCHOR, tag.buffer, tag.length))
{
ProcessAnchorForRun(markupProcessData,
+ markupPropertyData,
tag,
anchorStack,
markupProcessData.colorRuns,