8000 Code refractoring · causecode/static-content@90855e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90855e8

Browse files
committed
Code refractoring
1 parent b85b17d commit 90855e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

grails-app/conf/BuildConfig.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ grails.project.dependency.resolution = {
3535

3636
plugins {
3737
compile ":markdown:1.1.1"
38-
/*compile (":spring-security-core:2.0-RC4", ":taggable:1.1.0") {
38+
compile (":spring-security-core:2.0-RC4", ":taggable:1.1.0") {
3939
export = false
4040
}
4141
runtime (":hibernate:3.6.10.7") {
@@ -48,6 +48,6 @@ grails.project.dependency.resolution = {
4848
compile (":codenarc:0.22") {
4949
export = false
5050
}
51-
}*/
51+
}
5252
}
5353
}

grails-app/controllers/com/cc/content/blog/BlogController.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class BlogController {
124124

125125
blogList.each {
126126
// Convert markdown content into html format so that first paragraph could be extracted from it
127-
//it.body = it.body?.markdownToHtml()
127+
it.body = it.body?.markdownToHtml()
128128
// Extracting content from first <p> tag of body to display
129129
Matcher matcherTag = patternTag.matcher(it.body)
130130
it.body = matcherTag.find() ? matcherTag.group(2) : ""
@@ -212,7 +212,7 @@ class BlogController {
212212
def blogInstanceTags = blogInstance.tags
213213

214214
// Convert markdown content into html format
215-
//blogInstance.body = blogInstance.body?.markdownToHtml()
215+
blogInstance.body = blogInstance.body?.markdownToHtml()
216216

217217
List<Blog> blogInstanceList = Blog.findAllByPublish(true, [max: 5, sort: 'publishedDate', order: 'desc'])
218218
Map result = [blogInstance: blogInstance, comments: blogComments, tagList: tagList,

0 commit comments

Comments
 (0)
0