# PBuilder Prevent duplicate code blocks

**URL:** <https://forums.digi.com/t/pbuilder-prevent-duplicate-code-blocks/5436>\
**Category:** NET+OS\
**Created:** [September 20, 2011, 7:28pm UTC](https://forums.digi.com/t/pbuilder-prevent-duplicate-code-blocks/5436 "2011-09-20T19:28:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpotter](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@gpotter](https://forums.digi.com/u/gpotter)\
**Post date:** [September 20, 2011, 7:28pm UTC](https://forums.digi.com/t/pbuilder-prevent-duplicate-code-blocks/5436/1 "2011-09-20T19:28:01Z")

</div>

Hi,

Trying to get my head around the way RpIdentifier works in the Pbuilder preprocessor.

Assume in my web project I have two HTML files:

```auto

index.html

Footer Content
    

other.html

Footer Content
    

```

Is there a way to instruct PBuilder to not duplicate the output in the generated code? Now I find myself having to remove redefined char arrays to get the project to compile. Which is a hassle when trying to rapidly prototype projects.

For example if I run PBuilder on the above I will have something like this in my .c output file.

```auto

char myFooter[] = "Footer Content";

char myFooter[] = "Footer Content";

```

---

<div class="post-metadata">

**Author:** ![steved2](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@steved2](https://forums.digi.com/u/steved2)\
**Post date:** [September 21, 2011, 8:04am UTC](https://forums.digi.com/t/pbuilder-prevent-duplicate-code-blocks/5436/2 "2011-09-21T08:04:43Z")

</div>

Use the RpItemGroup construct to define the first instance:

Footer Content

Then reference it elsewhere:

Standard footer
